package com.siss.tenancy.msg;

import com.siss.tenancy.vo.CodeDesc;

import java.io.Serializable;

public class RspMessage implements Serializable{

	/**统一网关格式 */ 
	private static final long serialVersionUID = 1035538245743711208L;
	
	private String code;

	private Object data;

	private String message;
	
	public RspMessage(){
		
	}
	
	public RspMessage(String code, Object data, String message) {
		this.code = code;
		this.data = data;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
 
	public RspMessage(CodeDesc codeDesc, Object data){
		this.code=codeDesc.getCode();
		this.data=data;
		this.message=codeDesc.getMessage();

	}
	
	public RspMessage(CodeDesc codeDesc){
		this.code=codeDesc.getCode();
		this.data="";
		this.message=codeDesc.getMessage();

	}
	
 
	
}
